package com.aidex.system.service;

import com.aidex.common.core.service.BaseService;
import com.aidex.common.utils.JsonHelper;
import com.aidex.common.utils.http.HttpUtils;
import com.aidex.risk.domain.*;
import com.aidex.system.domain.Waybill;
import com.fasterxml.jackson.core.JsonProcessingException;

/**
 * 运单管理Service接口
 * @author jmy
 * @email jmyinjg@163.com
 * @date 2021-10-04
 */
public interface WaybillService extends BaseService<Waybill>
{

    /**
     * 批量删除运单管理
     * @param ids 需要删除的运单管理ID集合
     * @return 结果
     */
    int deleteWaybillByIds(String[] ids);

    /**
     * 获取运单
     *
     * @param waybillNo
     * @param dataSource
     * @return
     */
    Waybill get(String waybillNo, String dataSource);

    Waybill getUnSend(String waybillNo);
    /**
     * 删除运单
     *
     * @param waybillNo
     * @param dataSource
     */
    void deleteWaybillByBillno(String waybillNo, String dataSource);
    resultResponseT<wlpt_diff_producet_queryResponse> queryDiffProducetCommonLevel(Waybill waybill) throws JsonProcessingException;
    resultResponseT<wlpt_agent_scoreResponse> queryTradeAgentLevel(Waybill waybill) throws JsonProcessingException;
    syncEmergency<syncEmergencyAirport> queryEmergencyAirport(Waybill waybill);

    /**
     * 定时批量处理运单结果
     */
    void handleBatchWaybill();

}
